package com.common.context;

public class BaseContext {
    public static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(String id)
    {
        threadLocal.set(id);
    }

    public static String getCurrentId()
    {
        return threadLocal.get();
    }

    public static void remove()
    {
        threadLocal.remove();
    }
}
